package top.xiangqifu.springboot2_auth.dao;

import org.apache.ibatis.annotations.Mapper;
import top.xiangqifu.springboot2_auth.entity.TbAuthUser;
import top.xiangqifu.springboot2_auth.entity.TbPortableMessage;
import top.xiangqifu.springboot2_auth.entity.TbUserMessageRelationship;

import java.util.List;


@Mapper
public interface TbAuthUserDAO {
  TbAuthUser queryByName(TbAuthUser user);

  /**
   * 通过用户id获取对应用户信息
   * @param userId 用户id
   */
  TbAuthUser queryByKey(Integer userId);

  int add(TbAuthUser user);

  int updatePwd(TbAuthUser user);

  List<TbAuthUser> queryList(TbPortableMessage message);

  List<TbAuthUser> querynoList(TbPortableMessage message);

  List<TbAuthUser> querylikeList(TbUserMessageRelationship ship);

}
